package org.lionel.clazz;

import java.util.function.Function;

public class FunctionTest {
    public static void main(String... args) {
        Function<Integer, Integer> increase = e -> e + 100; // lambda表达式

        funTest(3, increase);
    }

    public static void funTest(int value, Function<Integer, Integer> func) {
        System.out.println(func.apply(value));
    }
}
